forum

home / developersection / forums / model require in mvc

Model require in mvc

Anonymous User 1888 10-Oct-2014
Is there a way through data annotations to require that a boolean property be set to true?
public class MyAwesomeObj
{
    public bool ThisMustBeTrue { get; set; }
}


Updated on 10-Oct-2014

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By